package com.ztgf.order.models.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class OrderExportAVO implements Serializable {

    @ApiModelProperty(value = "订单编号")
    private String orderNum;

    @ApiModelProperty(value = "下单时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @ApiModelProperty(value = "买家公司名")
    private String userName;

    @ApiModelProperty(value = "卖家店铺名")
    private String userPhone;

    @ApiModelProperty(value = "应付金额")
    private String userAddress;

    @ApiModelProperty(value = "订单金额")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal orderPrice;
}
